package com.liaohuakai.piggybank.model

import com.liaohuakai.piggybank.remote.dto.UserLoginResponseDto

/**
 * Author: Leo Liao <lliao@midtronics.com>
 * Date: 17/07/2025 15:28
 * Description:
 */
class UserBean {
    var name: String = ""
    var avatar: String = ""
    var token: String = ""
    var gender:Int =0

    fun fromLoginResponseDto(dto:UserLoginResponseDto){
        dto.name?.let { name = it }
        dto.avatarUrl?.let { avatar = it }
        dto.token?.let { token = it }
        gender = dto.gender
    }
}